package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.DriverEntity;

/**
 * 功能描述："我"中使用的数据模型
 */
public class MineVO {

    public static MineVO createFrom(DriverEntity entity) {
        if (entity == null) return new MineVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, MineVO.class);
    }

    @JSONField(name = "face")
    public String driverAvatar; //司机头像

    @JSONField(name = "name")
    public String driverName; //司机姓名

    @JSONField(name = "plateNum")
    public String licencePlate; //汽车牌照

    @JSONField(name = "brandName")
    public String brandName; //汽车品牌

    @JSONField(name = "carColor")
    public String carColor;//车辆外观颜色

    @JSONField(name = "carLevelName")
    public String carLevelName;//车型级别

    @JSONField(name = "shortName")
    public String shortName;//公司名称

}
